package com.topnav.mc.admin.service.impl;

import com.topnav.mc.admin.dao.mapper.FencePolygonMapper;
import com.topnav.mc.admin.entity.Fence;
import com.topnav.mc.admin.entity.FencePolygon;
import com.topnav.mc.admin.entity.bean.FencePolygonBean;
import com.topnav.mc.admin.entity.param.FencePolygonParam;
import com.topnav.mc.admin.service.IFencePolygonService;
import com.topnav.mc.base.mc.McServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @Author: kenny
 * @Date: 2023/11/13 10:55
 */
@Service
public class FencePolygonServiceImpl extends McServiceImpl<FencePolygonMapper, FencePolygon, FencePolygonBean, FencePolygonParam>
        implements IFencePolygonService {

    @Override
    public  boolean beforeSave(FencePolygon entity){
        entity.setCreateTime(new Date());
        entity.setUpdateTime(new Date());
        return true;
    }

    @Override
    public  boolean beforeUpdate(FencePolygon entity){
        entity.setUpdateTime(new Date());
        return true;
    }
    @Override
    public  boolean beforeDelete(FencePolygon entity){
        return true;
    }
}
